package com.littleken.foodieService;

import com.littleken.foodiePojo.domain.CategoryDO;
import com.littleken.foodiePojo.vo.CategoryVO;
import com.littleken.foodiePojo.vo.NewItemsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/*
 * Create by littleken on 2020/11/24 10:51
 */
public interface CategoryService {

    /**
     * 查询所有根级分类目录
     * @return
     */
    List<CategoryDO> getAllRootLevelCat();

    /**
     * 根据根分类id查询其下所有三级分类list
     * @param rootCatId
     * @return
     */
    List<CategoryVO> getAllSubCatList(Integer rootCatId);

    List<NewItemsVO> getSixNewItemsLazy(Integer rootCatId);

}
